package com.rdc.qingkou.view.fragment;


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.rdc.qingkou.R;

/**
 * Created by asus on 18-1-19.
 */

public class ShareViewFragmentone  extends Fragment {

    private TextView mTextView;
    private ImageView mImageView;
    private String mText;
    private String mImageUrl;
    private String mViewUrl;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.send_template_one, container, false);
        mTextView = (TextView) view.findViewById(R.id.layout_card_content_textView);
        mImageView = (ImageView) view.findViewById(R.id.layout_card_ImageView);
        mTextView.setText(mText);
        Glide.with(this).load(mImageUrl).into(mImageView);


        return view;
    }

    @Nullable
    @Override
    public View getView() {
        return super.getView();
    }

    public void setTextView(String text){
          mText = text;
    }

    public void setImageView(String url){
       mImageUrl = url;
    }

     public String getViewUrl(){
        return mViewUrl;
     }

}